import prompt from '@system.prompt';
export default {
  data: {
    images: [{
               src: '/common/src/1.png'
             }, {
               src: '/common/src/2.png'
             }, {
               src: '/common/src/3.png'
             }, {
               src: '/common/src/4.png'
             }, {
               src: '/common/src/5.png'
             }],
  },
  handleStart() {
    this.$refs.animator.start();
    prompt.showToast({
      message: `当前动作`+ this.$refs.animator.getState()
    })
  },
  handlePause() {
    this.$refs.animator.pause();
    prompt.showToast({
      message: `当前动作`+ this.$refs.animator.getState()
    })
  },
  handleResume() {
    this.$refs.animator.resume();
    prompt.showToast({
      message: `当前动作`+ this.$refs.animator.getState()
    })
  },
  handleStop() {
    this.$refs.animator.stop();
    prompt.showToast({
      message: `当前动作`+ this.$refs.animator.getState()
    })
  },
}
